
#include <stdio.h>
int main() {

    unsigned int s;

    scanf("%u", &s);
    int h = s / 3600;
    int min = (s % 3600) / 60;
    s = s % 60;



    printf("%d %d %d\n", h, min, s);

    return 0;
}#include <stdio.h>

int main() {
    float a = 0, b = 0, c = 0, d = 0, e = 0;
    while (scanf("%f %f %f %f %f", &a, &b, &c, &d, &e) != EOF) {
        float sum = a + b + c + d + e;
        printf("%.1f %.1f %.1f %.1f %.1f %.1f\n", a, b, c, d, e, sum);
    }
    return 0;
}
